﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" MasterPageFile="MasterPage.master" %>

<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <!-- 
        put your code here
        -->
    <div class="panel panel-default">
        <!-- Default panel contents -->
        <div class="panel-heading">
            <h1>Home Page</h1>
        </div>
        <div class="panel-body">

            <table style="width: 100%;">
                <tr>
                    <td class="auto-style2" width="700px" valign="top">
                        <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1" Width="100%">
                            <ItemTemplate>
                                <div class="hero-unit">
                                    <h2>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("title") %>' Font-Bold="True"></asp:Label></h2>
                                    <p>
                                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("content") %>'></asp:Label></p>
                                    <p>
                                        <a class="btn btn-primary btn-large">Read more
                                        </a>
                                    </p>
                                </div>
                                <hr />
                            </ItemTemplate>
                        </asp:DataList>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="select * from announce"></asp:SqlDataSource>
                    </td>
                    <td valign="top">
                        <asp:Image ID="Image1" runat="server" Height="122px" ImageUrl="~/img/images (1).jpg" BorderColor="#669999" BorderStyle="Solid" BorderWidth="1px" />
                        <br />
                        <asp:Image ID="Image2" runat="server" Height="122px" ImageUrl="~/img/images.jpg" BorderColor="#669999" BorderStyle="Solid" BorderWidth="1px" Width="255px" />
                        <br />
                        <asp:Image ID="Image3" runat="server" Height="122px" ImageUrl="~/img/images.png" BorderColor="#669999" BorderStyle="Solid" BorderWidth="1px" Width="253px" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="head">
    <style type="text/css">
        .auto-style2 {
            width: 793px;
        }
    </style>
</asp:Content>

